@extends('layouts.goods')
@section('content')
<body>
<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"> </script>
<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"> </script>
@if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li id="message">{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<div class="page-container">
	<form action="/business" method="post" class="form form-horizontal" id="form-article-add" enctype="multipart/form-data">
		{{ csrf_field() }}
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>产品标题：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="" placeholder="" id="" name="goods_name">
			</div>
		</div>
		<!-- <div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">简略标题：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="" placeholder="" id="" name="">
			</div>
		</div> -->
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>选择分类：</label>
			<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">
				<select class="select" name="cat_id">
					@foreach($type as $v)
					@if($v->parentid !== 0)
					<option value="{!! $v->catid !!}">{{ $v->catname }}</option>
					@endif
					@endforeach
				</select>
				</span> 
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>选择店铺：</label>
			<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">
				<select class="select" name="shop_id" >
					@foreach($shop as $v)
					<option  value="{{ $v->shop_id }}" >{{ $v->store_name }}</option>
					@endforeach
				</select>
				</span> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>库存：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="" placeholder="" id="" name="number">
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>产品展示价格：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="shop_price" id="" placeholder="" value="" class="input-text" style="width:90%">
				元</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>市场价格：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="goods_price" id="" placeholder="" value="" class="input-text" style="width:90%">
				元</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>产品描述:</label>
			<div class="formControls col-xs-8 col-sm-9">
			<script id="editor" name="goods_detail" type="text/plain" style="width:830px;height:300px;">
            
            </script>
            <script type="text/javascript">
                var ue = UE.getEditor('editor');
        	</script>
				<!-- <input type="text" name="goods_detail" id="" placeholder="" value="" class="input-text" style="width:90%"> -->
			</div>

		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>产品颜色:</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="color" id="" placeholder="" value="" class="input-text" style="width:90%"><span style="font-size:10px">多种颜色用,隔开</span>
			</div>

		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>产品尺寸:</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" name="size" id="" placeholder="" value="" class="input-text" style="width:90%"><span style="font-size:10px">多种尺寸用,隔开</span>
			</div>
	
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>缩略图：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="file" name="pic">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>图片详情：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="file" name="pic_detail[]" multiple="multiple">
			</div>
		</div>


		<div class="row cl" style="text-align:center;">
			<input type="submit">
		</div>
		
		
	</form>
</div>
@endsection

